package eclipse.util;
public class Random 
{
	private static java.util.Random rand = new java.util.Random();
	public static float randf(float high, float low, int mult)
	{
		float val = 0f;				
		do
			val = rand.nextFloat() * mult;
		while(val > high || val < low);
		return val;
	}
	public static int randi(int high, int low)
	{
		int val = 0;
		do
			val = rand.nextInt();
		while(val > high || val < low);
		return val;
	}
	public static boolean randb()
	{
		return rand.nextBoolean();
	}
}
